load 'config/deploy/cap_create_db' #used to create database.yml
load 'config/deploy/cap_create_webconfig' #used to create webapp-config.yml
#load 'config/deploy/cap_create_facebooker_config' #used to create facebooker.yml
#load 'config/deploy/prepare_system_folder' #used to create facebooker.yml
#load 'config/deploy/prepare_caheable' #Prepare chaceable CSS+JS
#load 'config/deploy/prepare_log_files' #Prepare Logs
#load 'config/deploy/thewebdawn'
#load 'config/deploy/ganhaagora'
load 'config/deploy/p1'
#load 'config/deploy/helderfalcao'


#default_run_options[:pty] = true
set :use_sudo, false

set :user, "rails"
set :scm, :subversion
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
set :scm_username, "joaomiguel.pereira@gmail.com"
set :scm_password, "ed3Bn5Gp6Vk2"

role :web, "109.74.195.251"                          # Your HTTP server, Apache/etc
role :app, "109.74.195.251"                          # This may be the same as your `Web` server
role :db,  "109.74.195.251", :primary => true # This is where Rails migrations will run
role :db,  "109.74.195.251"
# If you are using Passenger mod_rails uncomment this:
# if you're still using the script/reapear helper you will need
# these http://github.com/rails/irs_process_scripts

namespace :deploy do
  
  task :start do ; end
  task :stop do ; end
  task :restart, :roles => :app, :except => { :no_release => true } do
    run "touch #{File.join(current_path,'tmp','restart.txt')}"
  end
end